import request from '@/utils/request'

// 查询德育评价列表
export function evaluationsApi(query) {
  return request({
    url: '/system/evaluations/listByTeacher',
    method: 'get',
    params: query
  })
}
// 德育评价详情
export const evaluationsDetailApi = (id) => {
  return request({
    url: `/system/evaluations/${id}`,
    method: 'get',
  })
}
// 通过/拒绝
export function evaluationsPass(data) {
  return request({
    url: '/system/evaluations/audit',
    method: 'post',
    data: data
  })
}
// 查看修改
export function evaluationsView(data) {
  return request({
    url: '/system/evaluations',
    method: 'put',
    data: data
  })
}